﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class Yuangong
    {
        //            定义一个员工类，存放用户的工号、姓名、性别、学历和部门信息；
        public int num;
        public string name;
        public string sex;
        public string xueli;
        public string message;

        public Yuangong()
        {
            Console.WriteLine("专科");
        }
        public Yuangong(int num, string name, string sex, string xueli, string message)
        {
            this.num = num;
            this.name = name;
            this.sex = sex;
            this.xueli = xueli;
            this.message = message;

        }
        public void Sio()
        {
            Console.WriteLine("工号为{0},姓名{1},性别{2},学历{3},部门信息{4}",this.num,this.name,this.sex,this.xueli,this.message);
            }
    }
}
